package com.chenyu.client;

import com.chenyu.domain.LoginUser;
import com.chenyu.fallback.AuthClientsFallbackFactory;
import com.chenyu.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 晴
 * @version 1.0
 * @description:
 * @date 2024/7/20 13:59
 */
@FeignClient(name = "gift-auth",fallbackFactory = AuthClientsFallbackFactory.class)
@RequestMapping("/loginUser")
public interface AuthClients {

    @PutMapping
    public AjaxResult addOrUpdate(@RequestBody LoginUser loginUser);

}
